package com.qidian.mes.pojo.cal;

import java.util.Date;

/**
 * @Author 04冯虹丹
 * @Company 起点编程
 * @Time 2023/11/1 16:58
 * @Description
 */
public class CalShift {
    private Long shiftId;
    private Long planId;
    private Integer orderNum;
    private String shiftName;
    private String startTime;
    private String endTime;
    private String remark;
    private Integer calShiftStatus;
    private Date createTime;
    private Date modifyTime;
    private Long calShiftCreateTimeMillis;
    private Long calShiftModifyTimeMillis;

    public Long getShiftId() {
        return shiftId;
    }

    public void setShiftId(Long shiftId) {
        this.shiftId = shiftId;
    }

    public Long getPlanId() {
        return planId;
    }

    public void setPlanId(Long planId) {
        this.planId = planId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getShiftName() {
        return shiftName;
    }

    public void setShiftName(String shiftName) {
        this.shiftName = shiftName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getCalShiftStatus() {
        return calShiftStatus;
    }

    public void setCalShiftStatus(Integer calShiftStatus) {
        this.calShiftStatus = calShiftStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        return "CalShift{" +
                "shiftId=" + shiftId +
                ", planId=" + planId +
                ", orderNum=" + orderNum +
                ", shiftName='" + shiftName + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", remark='" + remark + '\'' +
                ", calShiftStatus=" + calShiftStatus +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Long getCalShiftCreateTimeMillis() {
        if(this.createTime != null){
            return this.createTime.getTime();
        }
        return null;
    }

    public void setCalShiftCreateTimeMillis(Long calShiftCreateTimeMillis) {
        this.calShiftCreateTimeMillis = calShiftCreateTimeMillis;
    }

    public Long getCalShiftModifyTimeMillis() {
        if(this.modifyTime != null){
            return this.modifyTime.getTime();
        }
        return null;
    }

    public void setCalShiftModifyTimeMillis(Long calShiftModifyTimeMillis) {
        this.calShiftModifyTimeMillis = calShiftModifyTimeMillis;
    }
}
